package io.itit.ecp.admin.provide.action.resp;

import io.itit.grass.common.provide.action.resp.BaseResp;
import io.itit.grass.dict.starter.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalTime;

/**
 * <p>
 *
 * @Author：Roy
 * @Description：分时电价管理响应结果
 * @Date：Create by 2023-12-04 15:28:53
 */
@Data
@ToString
@ApiModel("分时电价管理响应结果")
public class HourElectricityPriceResp extends BaseResp {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("项目ID")
    private String sceneProjectId;

    @ApiModelProperty("项目名称")
    private String sceneProjectName;

    @ApiModelProperty("时段开始时间")
    private LocalTime startTime;

    /* 时段结束时间 */
    @ApiModelProperty("时段结束时间")
    private LocalTime endTime;

    /* 电价 */
    @ApiModelProperty("电价")
    private BigDecimal price;

    /* 峰谷类型 */
    @ApiModelProperty("峰谷类型")
    @Dict(isBean = true, dictCode = "HourElectricityPricePeakValleyTypeSelected")
    private String peakValleyType;

    /* 生效开始时间 */
    @ApiModelProperty("生效开始时间")
    private LocalDate startDate;

    /*生效结束时间*/
    @ApiModelProperty("生效结束时间")
    private LocalDate endDate;


    public LocalTime[] getTimeRange() {
        return new LocalTime[]{startTime, endTime};
    }

    public LocalDate[] getDateRange() {
        return new LocalDate[]{startDate, endDate};
    }


}
